package DeMo2;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("小猫");
        Duck duck = new Duck("鸭子");
        cat.run();
        duck.fly();
        duck.swim();
    }

}
